﻿<%@ Page Language="C#" MasterPageFile="~/MasterCarInsurance.master" AutoEventWireup="true"
    Async="true" CodeFile="CompareInsurance.aspx.cs" Inherits="car_insurance_CompareInsurance" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpHeader" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
    <div class="body">
        <div class="topcol">
        </div>
        <div class="body">
            <div class="padding_lr15px">
                <div class="col_content_full">
                    <div class="topcol">
                    </div>
                    <div class="body">
                        <!--Content | Start-->
                        <div class="padding_lr30px">
                            <div class="padding_lr30px">
                                <div>
                                    <asp:Button ID="btnBackBottom" runat="server" onmousedown="this.className = 'button_back_mousedown';"
                                        onmouseup="this.className = 'button_back';" onmouseout="this.className = 'button_back';"
                                        CssClass="button_back" AlternateText="Back" ToolTip="Back" CausesValidation="False"
                                        OnClientClick="history.back();return false;" />
                                </div>
                                <table border="1" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <asp:Repeater ID="rptCompare" runat="server" OnItemDataBound="rptCompare_ItemDataBound"
                                            OnItemCommand="rptCompare_ItemCommand">
                                            <HeaderTemplate>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <td style="vertical-align: top;">
                                                     <div style="position: static;" class="padding_10px">
                                                        <div style="height: 70px; text-align:center">
                                                            <asp:Label ID="lblProviderId" runat="server" Style="display: none" Text='<%# Eval("ProviderCompanyId").ToString() %>'></asp:Label>
                                                            <asp:Label ID="lblTempResultId" runat="server" Style="display: none" Text='<%# Eval("CITempResultId").ToString() %>'></asp:Label>
                                                            <img src='<%# Eval("PackageName").ToString() != "GluayGluay.com Special"?Eval("CompanyLogoWebUrl"):"/images/public/gluaygluay_logo.png" %>'
                                                                alt="" />
                                                            <br />
                                                        </div>
                                                        <div id="divPackageName" runat="server" style="height: 50px;">
                                                            <asp:Label ID="lblPackageName" runat="server" Text='<%# Eval("PackageName").ToString()%>'></asp:Label>
                                                            <div id="divSpecialNCB" runat="server" style="display: none; font-size: 11px;">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "SpecialNCB")%>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="TextBlue18">
                                                        <div class="holder_wrap" style="height: 40px;">
                                                            <div class="holder_wrap_img">
                                                                <img runat="server" id="imgSpecial" alt="Special Offer" src="/images/icon/special.png"
                                                                    style="display: none" />
                                                            </div>
                                                            <div class="inner_position_right">
                                                                <asp:Label ID="lblPremium" runat="server" Text='<%# Eval("PromotionPrice")!= null && Convert.ToInt32(Eval("PromotionPrice"))>0?Convert.ToDouble(Eval("PromotionPrice")).ToString("#,000.00"):"-"%>' />
                                                                <span style="font-size: 12px;">
                                                                    <%= GetGlobalResourceObject("CarInsuranceResultPage", "THBCurrency")%></span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div>
                                                        <div class="padding_10px">
                                                            <h3>
                                                                <asp:Label ID="lblOwnDamage" runat="server" Text="<%$Resources:CarInsuranceResultPage,OwnDamage %>" /></h3>
                                                        </div>
                                                        <div class="yellow_bg">
                                                            <asp:Label ID="lblTitleDeductible" Width="110" runat="server" Text="<%$Resources:CarInsuranceResultPage,Deductible %>" />
                                                            :<span class="dark">
                                                                <asp:Label ID="lblDeductible" runat="server" Text='<%# Eval("DEC")!= DBNull.Value?(Convert.ToInt32(Eval("DEC"))>0?Convert.ToInt32(Eval("DEC")).ToString("#,000"):"-"):"-"%>' /></span><br />
                                                        </div>
                                                        <div class="yellow_bg_light">
                                                            <asp:Label ID="lblTitleCoverOwnDamage" runat="server" Text="<%$Resources:CarInsuranceResultPage,CoverOwnDamage %>" />
                                                            :<span class="dark">
                                                                <asp:Label ID="lblCoverOwnDamage" runat="server" Text='<%# Eval("SumInsured")!= DBNull.Value?(Convert.ToInt32(Eval("SumInsured"))>0?Convert.ToInt32(Eval("SumInsured")).ToString("#,000"):"-"):"-"%>' /></span><br />
                                                        </div>
                                                        <div class="yellow_bg">
                                                            <asp:Label ID="lblTitleFire" runat="server" Text="<%$Resources:CarInsuranceResultPage,Fire %>" />
                                                            :<span class="dark">
                                                                <asp:Label ID="lblFire" runat="server" Text='<%# Eval("Fire")!= DBNull.Value?(Convert.ToInt32(Eval("Fire"))>0?Convert.ToInt32(Eval("Fire")).ToString("#,000"):"-"):"-"%>' /></span><br />
                                                        </div>
                                                        <div class="yellow_bg_light">
                                                            <asp:Label ID="lblTitleTheft" runat="server" Text="<%$Resources:CarInsuranceResultPage,Theft %>" />
                                                            :<span class="dark">
                                                                <asp:Label ID="lblTheft" runat="server" Text='<%# Eval("Theft")!= DBNull.Value?(Convert.ToInt32(Eval("Theft"))>0?Convert.ToInt32(Eval("Theft")).ToString("#,000"):"-"):"-"%>' /></span>
                                                        </div>
                                                        <div style="height: 33px;">
                                                            <div class="flood" id="divFlood" runat="server" visible='<%#   Eval("IsFloodCover") != DBNull.Value?( Convert.ToInt32(Eval("IsFloodCover")) != 0?true:false):false %>'>
                                                                <asp:Label ID="lblFloodCover" runat="server" Text="<%$Resources:CarInsuranceResultPage,FloodCover %>" />
                                                            </div>
                                                        </div>
                                                        <div class="seperator_10px">
                                                        </div>
                                                        <div style="text-align:center;">
                                                            <asp:Button runat="server" ID="btnBuyNowTop" CssClass="button_buynow" onmousedown="this.className = 'button_buynow center';"
                                                                onmouseup="this.className = 'button_buynow center';" onmouseout="this.className = 'button_buynow center';"
                                                                CausesValidation="false" CommandName="buynow" OnClientClick="this.removeAttribute('onmouseout'); this.removeAttribute('onmouseup'); this.className = 'button_buynow center';" />
                                                        </div>
                                                        <div class="seperator_15px">
                                                        </div>
                                                        <div>
                                                            <div class="padding_10px">
                                                                <h3>
                                                                    <asp:Label ID="lblThirdParty" runat="server" Text="<%$Resources:CarInsuranceResultPage,ThirdPartyLiability %>" />
                                                                </h3>
                                                            </div>
                                                            <div class="yellow_bg">
                                                                <asp:Label ID="lblTitleTPPD" runat="server" Text="<%$Resources:CarInsuranceResultPage,CoverTPPD %>" />
                                                                : <span class="dark">
                                                                    <asp:Label ID="lblTPPD" runat="server" Text='<%# Eval("TPPD")!= DBNull.Value?(Convert.ToInt32(Eval("TPPD"))>0?Convert.ToInt32(Eval("TPPD")).ToString("#,000"):"-"):"-"%>' /></span><br />
                                                            </div>
                                                            <div class="yellow_bg_light">
                                                                <asp:Label ID="lblTitleTPBIA" runat="server" Text="<%$Resources:CarInsuranceResultPage,CoverTPBIA %>" />
                                                                : <span class="dark"><br />
                                                                    <asp:Label ID="lblTPBIA" runat="server" Text='<%# Eval("TPBIA")!= DBNull.Value?(Convert.ToInt32(Eval("TPBIA"))>0?Convert.ToInt32(Eval("TPBIA")).ToString("#,000"):"-"):"-"%>' /></span><br />
                                                            </div>
                                                            <div class="yellow_bg">
                                                                <asp:Label ID="lblTitleTPBIP" runat="server" Text="<%$Resources:CarInsuranceResultPage,CoverTPBIP %>" />
                                                                : <span class="dark"><br />
                                                                    <asp:Label ID="lblTPBIP" runat="server" Text='<%# Eval("TPBIP")!= DBNull.Value?(Convert.ToInt32(Eval("TPBIP"))>0?Convert.ToInt32(Eval("TPBIP")).ToString("#,000"):"-"):"-"%>' /></span><br />
                                                            </div>
                                                        </div>
                                                        <br />
                                                        <div>
                                                            <div>
                                                                <div class="padding_10px">
                                                                    <h3>
                                                                        <asp:Label ID="lblAdditionalCover" runat="server" Text="<%$Resources:CarInsuranceResultPage,AdditionalCovers %>" /></h3>
                                                                </div>
                                                                <div class="yellow_bg">
                                                                    <asp:Label ID="lblCoverPADriver" runat="server" Text="<%$Resources:CarInsuranceResultPage,CoverPADriver %>" />
                                                                    : <span class="dark">
                                                                        <asp:Label ID="lblPADriver" runat="server" Text='<%# Eval("PADriver")!= DBNull.Value?(Convert.ToInt32(Eval("PADriver"))>0?Convert.ToInt32(Eval("PADriver")).ToString("#,000"):"-"):"-"%>' /></span><br />
                                                                </div>
                                                                <div class="yellow_bg_light">
                                                                    <asp:Label ID="lblCoverMED" runat="server" Text="<%$Resources:CarInsuranceResultPage,CoverMED %>" />
                                                                    : <span class="dark">&nbsp;
                                                                        <asp:Label ID="lblMED" runat="server" Text='<%# Eval("MedicalExpense")!= DBNull.Value?(Convert.ToInt32(Eval("MedicalExpense"))>0?Convert.ToInt32(Eval("MedicalExpense")).ToString("#,000"):"-"):"-"%>' /></span><br />
                                                                </div>
                                                                <div class="yellow_bg">
                                                                    <asp:Label ID="lblCoverBailBond" runat="server" Text="<%$Resources:CarInsuranceResultPage,CoverBailBond %>" />
                                                                    : <span class="dark">
                                                                        <asp:Label ID="lblBailBond" runat="server" Text='<%# Eval("BailBond")!= DBNull.Value?(Convert.ToInt32(Eval("BailBond"))>0?Convert.ToInt32(Eval("BailBond")).ToString("#,000"):"-"):"-"%>' /></span>
                                                                </div>
                                                            </div>
                                                            <br />
                                                        <div style="text-align:center;" class="padding_10px">
                                                                <asp:Button runat="server" ID="btnMoreInfo" Visible="true" CssClass="button_moreinfo center"
                                                                    onmousedown="this.className = 'button_moreinfo center';" onmouseup="this.className = 'button_moreinfo center';"
                                                                    onmouseout="this.className = 'button_moreinfo center';" CausesValidation="false"
                                                                    CommandName="moreinfo" OnClientClick="this.removeAttribute('onmouseout'); this.removeAttribute('onmouseup'); this.className = 'button_moreinfo';" />
                                                            </div>
                                                </td>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <!--Content | End-->
                    </div>
                    <div class="bottom">
                    </div>
                </div>
            </div>
        </div>
        <div class="bottom">
        </div>
    </div>
</asp:Content>
